[VERSN2]
watermark "Mod made by YochiThMaster333"

// This is required for custom addon generic parts (wheels or spoilers; all NFS games) and/or custom addon vector vinyls (Carbon, ProStreet, Undercover). Without it, custom wheels and vector vinyls might cause many issues to your game (most notably the game crash)
speedreflect auto

// Checks if FrontB.lzc file has been modified with TexEd
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
end

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_NISSAN CARSELECT_MANUFACTURER_NISSAN "FigaroParts\CARSELECT_MANUFACTURER_NISSAN.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_FIGARO SECONDARY_LOGO_FIGARO "FigaroParts\SECONDARY_LOGO_FIGARO.dds"
bind_textures synchronize FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES "FigaroParts\TuningIcons"

move_file override relative absolute FigaroParts\FIGARO.ini scripts\UnlimiterData\FIGARO.ini

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CARNAME_NISSAN_FIGARO "1991 Nissan Figaro"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_MCHONE_1 "Racing Hood Pins"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_FIGARO_1 "DrSp Oberon Chop Top (Chrome, Chrome Cage)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_FIGARO_2 "DrSp Oberon Chop Top (Gold, Chrome Cage)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_FIGARO_3 "DrSp Oberon Chop Top (Chrome, Painted Cage)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_FIGARO_4 "DrSp Oberon Chop Top (Gold, Painted Cage)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_FIGARO_1 "DrSp Oberon (Chrome)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_FIGARO_2 "DrSp Oberon (Gold)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_FIGARO_1 "Lunar"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_FIGARO_1 "Tinted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_FIGARO_1 "DrSp Oberon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_PLATEPOS_FIGARO_1 "Front and Rear"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_PLATEPOS_FIGARO_2 "Rear Only"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_PLATEPOS_FIGARO_3 "Front Only"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_PLATEPOS_FIGARO_4 "Remove Plates"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_FIGARO_1 "Brembo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_FIGARO_2 "Brembo (Black)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_FIGARO_3 "Wilwood"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMPLATES "License Plate Position"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_FIGARO1 "DrSp Oberon (Chrome)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_FIGARO2 "DrSp Oberon (Gold)"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PD_FIGARO_TRANS1 "5-speed Manual Transmission"

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos FIGARO
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos FIGARO
else
end

if collection_exists GLOBAL\GLOBALB.LZC Collisions FIGARO
do
remove_collection GLOBAL\GLOBALB.LZC Collisions FIGARO
else
end

if collection_exists GLOBAL\GLOBALB.LZC SlotOverrides FIGARO_PART_SPOILER
do
remove_collection GLOBAL\GLOBALB.LZC SlotOverrides FIGARO_PART_SPOILER
else
end

copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos GTI FIGARO
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos FIGARO DefaultBasePaint GLOSS_L1_COLOR11
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos FIGARO ManufacturerName NISSAN
copy_collection GLOBAL\GLOBALB.LZC Collisions GTI FIGARO
import override GLOBAL\GLOBALB.LZC DBModelParts FigaroParts\FIGARO.bin
copy_collection GLOBAL\GLOBALB.LZC SlotOverrides TT_PART_SPOILER FIGARO_PART_SPOILER

if directory_exists absolute CARS\FIGARO
do
else
create_folder absolute CARS\FIGARO
end

move_file override relative absolute Main\GEOMETRY.BIN CARS\FIGARO\GEOMETRY.BIN
move_file override relative absolute Main\TEXTURES.BIN CARS\FIGARO\TEXTURES.BIN

combobox "Standard Resolution (512x)" "High Resolution (1024x)" "Choose vinyls resolution."

"Standard Resolution (512x)"
move_file override relative absolute Vinyls\512.BIN CARS\FIGARO\VINYLS.BIN

"High Resolution (1024x)"
move_file override relative absolute Vinyls\1024.BIN CARS\FIGARO\VINYLS.BIN

end
